<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
    <script>
        if(localStorage.getItem("isLogin") !== "ok"){
            alert("未登录状态，不允许打开购物车，请先登录")
            location.href = "./login.html"
        }
    </script>
</head>
<body>
    这是购物车
    <a href="./index.html">回到首页</a>
</body>
</html>